<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
<%@page import="java.io.InputStream"%>
<%@page import="org.apache.ibatis.io.Resources"%>
<%@page import="org.apache.ibatis.session.SqlSessionFactory"%>
<%@page import="org.apache.ibatis.session.SqlSession"%>
<%@page import="java.io.IOException"%>
<%@page import="org.apache.ibatis.session.SqlSessionFactoryBuilder"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
 
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="桌面壁纸网站 - Clean HTML5 and CSS3 responsive template">
<meta name="author" content="MyPassion">

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

<title>桌面壁纸网站 - Responsive HTML5 and CSS3 </title>

<link rel="shortcut icon" href="img/sms-4.ico" />

<!-- STYLES -->
<link rel="stylesheet" type="text/css" href="/wallpaper/frontfiles/css/superfish.css" media="screen"/>
<link rel="stylesheet" type="text/css" href="/wallpaper/frontfiles/css/fontello/fontello.css" />
<link rel="stylesheet" type="text/css" href="/wallpaper/frontfiles/css/flexslider.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/wallpaper/frontfiles/css/ui.css" />
<link rel="stylesheet" type="text/css" href="/wallpaper/frontfiles/css/base.css" />
<link rel="stylesheet" type="text/css" href="/wallpaper/frontfiles/css/style.css" />
<link rel="stylesheet" type="text/css" href="/wallpaper/frontfiles/css/960.css" />
<link rel="stylesheet" type="text/css" href="/wallpaper/frontfiles/css/devices/1000.css" media="only screen and (min-width: 768px) and (max-width: 1000px)" />
<link rel="stylesheet" type="text/css" href="/wallpaper/frontfiles/css/devices/767.css" media="only screen and (min-width: 480px) and (max-width: 767px)" />
<link rel="stylesheet" type="text/css" href="/wallpaper/frontfiles/css/devices/479.css" media="only screen and (min-width: 200px) and (max-width: 479px)" />
 
<!--[if lt IE 9]> <script type="text/javascript" src="/wallpaper/frontfiles/js/customM.js"></script> <![endif]-->


</head>

<body>

<!-- Body Wrapper -->
<div class="body-wrapper">
	<div class="controller">
    <div class="controller2">

        <jsp:include page="top.jsp"></jsp:include>
        
        <!-- Content -->
        <section id="content">
            <div class="container">
           
           <%
String id = request.getParameter("id"); 
HashMap<String,String> map = new CommDAO().getmap(id,"resources");
            %> 	 
            
            	<!-- Main Content -->
                <div class="main-content">
                    
                    <!-- Single -->
                    <div class="column-two-third single">
                    	 
                        <div class="relatednews">
                            <h5 class="line"><span>信息详情.</span></h5>
<table width="100%" height="84" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                                                      
                   <td width="100%" height="27" class="">
                   <center>
                    <font size="4"><strong><%=Info.subStr(map.get("title").toString(),48) %> </strong></font>
                                 
                               <br />
                               <table><tr><td height="5"></td></tr></table>
                                    <span class="">  
                                        <%=map.get("savetime") %> </span>
                                       
                                       <table><tr><td height="5"></td></tr></table>   
                                        <%
if(!map.get("filename").equals("")){
 %>                                                                                 
<img src="/wallpaper/upfile/<%=map.get("filename")%>" height=395 />                                                
<table><tr><td height="5"></td></tr></table>
<%} %>  
                                                                                               
  
              
              
               </center>
              
              </td>
</tr>


<tr>
    <td height="15" class=" " valign="top">
     
    
    </td>
</tr>

  <tr>
    <td height="53" class=" " valign="top">
    
    <font color="gray" >
    
    <%= map.get("content").toString()  %>
      
      </font>
      
      </td>
  </tr>
  
  
  
  
     <tr>
          <td height="45" align="center" colspan="4" valign="middle" >
              <%
              	String table="resources";
                                        String colname = "title";
                                        String url = "resourcex.jsp";
                                        if(Info.getUser(request)!=null&&request.getParameter("content")!=null){
                            		    HashMap extmap = new HashMap();
                            		    extmap.put("saver",Info.getUser(request).get("uname"));
                            		    HashMap imap = new CommDAO().getmap(id,table);
                            		    String infotitle = imap.get(colname).toString();
                            		    extmap.put("infotitle",infotitle);
                            		    new CommDAO().insert(request,response,"pinlun",extmap,true,false);
                            		    }
              %>
           <jsp:include page='pinlun.jsp'>
           <jsp:param name="id" value="<%=id %>" />
           <jsp:param name="colname" value="<%=colname %>" />
           <jsp:param name="table" value="<%=table %>" />
           <jsp:param name="url" value="<%=url %>" />
           </jsp:include>
           </td>
          </tr> 
  
  
  
  
  
</table>
                        </div>
                         
                        
                    </div>
                    <!-- /Single -->
                    
                </div>
                <!-- /Main Content -->
                  
            </div>    
        </section>
        <!-- / Content -->
        
        <center>
        &nbsp;
        <div >
       
        </div>
        &nbsp;
        </center>
        <jsp:include page="foot.jsp"></jsp:include>
        
        
         
    
    </div>
	</div>
</div>
<!-- / Body Wrapper -->


<!-- SCRIPTS -->
<script type="text/javascript" src="/wallpaper/frontfiles/js/jquery.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/easing.min.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/1.8.2.min.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/ui.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/carouFredSel.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/superfish.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/customM.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/flexslider-min.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/tweetable.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/timeago.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/jflickrfeed.min.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/mobilemenu.js"></script>

<!--[if lt IE 9]> <script type="text/javascript" src="/wallpaper/frontfiles/js/html5.js"></script> <![endif]-->
<script type="text/javascript" src="/wallpaper/frontfiles/js/mypassion.js"></script>


</body>
</html>
<script language=javascript>  
 <%
 if(request.getParameter("f")!=null){
 %>
 alert("操作成功");
 window.location.replace("resourcex.jsp?id=<%=id%>")
 <%}%>
</script>  
 
            